home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 885 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: b91926@fsgi01.fnal.gov (David Sachs)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Placement delete suggestion Keywords: delete placement
  5. Date: 27 Mar 1996 15:39:36 PST
  6. Organization: FERMILAB, Batavia, IL
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4j9rej$1jb@fsgi01.fnal.gov>
  9. References: <4j4ec5$d41@fsgi01.fnal.gov> <9603261124.AA22276@lts.sel.alcatel.de>
  10. Reply-To: sachs@fnal.fnal.gov
  11. NNTP-Posting-Host: isolde.mti.sgi.com
  12. X-Original-Date: 26 Mar 1996 16:34:59 -0600
  13. X-Newsreader: NN version 6.5.0 #9 (NOV)
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBVAwUBMVnRuUy4NqrwXLNJAQE/igH+LVvssQyJO5AZvb+9T5m0bYdVxmsYlR6p
  16.     duEsCmk0Sgo0krL466EOMVthJVx77WE/bJci+6eSBuMJ5oKajKO4Uw==
  17.     =BHe/
  18. Originator: austern@isolde.mti.sgi.com
  19.  
  20. James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de> writes:
  21. ...
  22.  
  23. >Is the expression: delete (*pf)( p ) placement delete or not?  (The
  24. >variable pf has type `T* (*)( T* )', and p type T*.)  If not, why not?
  25. >If so, how can I remove the ambiguity (by adding parentheses or
  26. >otherwise)?
  27. If my idea were adapted, the example you gave would be treated as a
  28. placement delete. It could be disambiguated by adding a pair of
  29. parentheses to make it:
  30.  
  31. delete ((*pf)( p ))
  32.  
  33. In extremely complex cases you might even need
  34.  
  35. (delete ((*pf)( p )))
  36. -- 
  37. ***** Listen Americans, the IRS is your taxer,  the IRS is one. *****
  38. David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
  39. Voice: 1 708 840 3942      Deparment Fax: 1 708 840 3785
  40. ---
  41. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  42.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  43.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  44.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  45.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  46. ]
  47.